//
//  AudioMainViewController.h
//  OfficeEtc
//
//  Created by Wangli on 12-6-2.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MusicController.h"
#import <AVFoundation/AVFoundation.h>
#import "WifiViewController.h"
@interface AudioMainViewController : UIViewController
<UITableViewDelegate,UITableViewDataSource,MusicTableViewControllerDelegate,AVAudioPlayerDelegate
,WifiAddFileProtocol,UIAlertViewDelegate>
{
    UITableView                 *p_ListTableView;
    UIToolbar                   *p_BottomBar;
    NSString                    *m_MusicPath;
    UIView                      *p_PlayButtonView;
    NSMutableArray              *p_AllMusicItems;
    UIImage                     *p_PlayImg;
    UIImage                     *p_PauseImg;
    UIImage                     *p_PlayingImg;
    NSInteger                   p_NowPlayIndex;
    NSInteger                   p_WillPlayIndex;
    MusicController             *p_MusicController;
    
    AVAudioPlayer               *p_LocalPlayer;
    NSInteger                   p_PlayMode;
    UILabel                     *p_PlayName;
    UILabel                     *p_TimeMusic;
    UISlider                    *p_TimerSlider;
    NSTimer                     *p_SliderCheckTimer;
}
@property (readonly) NSString                    *m_MusicPath;
-(void) remotePauseOrPlayMusic;
-(void) remotePlayNextMusic;
-(void) remotePlayBackMusic;


-(void) addFileByFTP:(NSString*)f_Path;
-(void) delFileByFTP:(NSString*)f_Path;
-(void) reNameFileByFTP:(NSString*)f_Path oldName:(NSString*)f_OldName;
@end
